import http from './http'

// 获取频道列表接口
export const getChannelApi = () => http.get('/channel')
// 发布文章接口
export const postArticleApi = (formdata) => http.post('/article', formdata)
// 获取文章列表接口
export const getArticleApi = (params) => http.get('/article', { params })
//  获取文章详情接口
export const getArticleByIdApi = (id) => http.get(`/article/${id}`)
// 删除文章接口
export const deleteArticleApi = (id) => http.delete(`/article/${id}`)
